package Assignment;

import java.util.Scanner;

public class Test10 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("输入：");
        int number = scanner.nextInt();

        int newn = 0;
        int temp = number;

        while (temp > 0){
            newn *= 10;
            newn += temp %10;
            temp /=10;
        }

        if (newn == number){
            System.out.println(number+"是一个回文数");
        }else {
            System.out.println(number+"不是一个回文数");
        }
    }
}
